package com.cxg.allsys.expertsys.controller;

import com.cxg.allsys.expertsys.service.IExpertsysService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/api")
@RestController
@Slf4j
public class ReserPassWordConfig {

    @Autowired
    private IExpertsysService iExpertsysSevice;

    //重置密码
    @RequestMapping("/Expert/ResetExpertPassword")
    public boolean resetExpertPassword(Integer expertid,String password ,String newpassword){
        return iExpertsysSevice.resetpassword(expertid,password,newpassword);
    }
}
